package homework3.exp5;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Test5 {
    public static void main(String[] args) {
        FileReader reader = null;
        BufferedReader bufferedReader=null;
        try {
            reader = new FileReader("C:\\Windows\\win.ini");
            bufferedReader= new BufferedReader(reader);
            String line = bufferedReader.readLine();
            while(line != null) {
                System.out.println(line);
                line = bufferedReader.readLine();
            }
            reader.close();
            bufferedReader.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
